﻿using Netkk.Common.Models;
using Netkk.Data.Provider;
using System.Collections.Generic;

namespace Netkk.Library.Repositories
{
    public class ContentRepository : IContentRepository
    {
        private static DataProvider Provider
        {
            get { return DataProviderManager.Provider; }
        }

        public IEnumerable<Content> Select()
        {
            return Provider.SelectAllContents();
        }

        public void Delete(Content content)
        {
            Provider.DeleteContent(content);
        }

        public void Save(Content content)
        {
            Provider.SaveContent(content);
        }

    }

}
